const Koa = require("koa");
const bodyParser = require("koa-bodyparser");
const app = new Koa();

const { adminRouter } = require("./router/admin");

app
  .use(bodyParser())
  .use(adminRouter.routes())
  .use(adminRouter.allowedMethods());

app.listen(3000, () => {
  console.log("http://localhost:3000");
});
